<!doctype html>
<html lang="en">
<head>
    <meta name="charset" content="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="csrf-token" content="{{csrf_token()}}">
    <meta name="author" content="">
    <title>Login</title>
    <link rel="shortcut icon" href="@public('/ico/minus.png')">
    <link rel="stylesheet" href="@public('/vendors/layui/css/layui.css')">
    <link rel="stylesheet" href="@public('vendors/toastr/toastr.min.css')">
    <link rel="stylesheet" href="@public('/css/login.css')">
    <style>
        body {

            overflow: hidden;
        }
        canvas {

            position: absolute;
            top: 0;
            left: 0;
            background-color: black;
        }

        a {

            width: 200px;
            height: 200px;
            position: absolute;
            left: calc( 100% - 200px );
            top: calc( 100% - 130px );
        }
        img {
            width: 200px;
        }
    </style>
</head>
<body>
<div id="login-wrapper">
    <canvas id="c"></canvas>
    <div class="layui-row">
        <div id="login-wrap" class="layui-col-sm8 layui-col-lg3 layui-col-lg-offset8 layui-col-sm-offset2">
            <div class="layui-row">
                <div class="layui-col-md12" id="logo-title">
                    <h1>Im · Login
                        <span>v1.3</span>
                    </h1>
                </div>
                <div class="layui-col-sm12 bg-white">
                    <div class="login-container">
                        <form id="form-create" lay-filter="form-create" action="{{url('login')}}" method="post">
                            <div class="layui-form-item">
                                <label class="layui-form-label">通行证</label>
                                <div class="layui-block">
                                    <input type="text" name="account" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">密码</label>
                                <div class="layui-block">
                                    <input type="password" name="password" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <input class="check" type="checkbox" lay-skin="primary" title="记住用户名" />
                                    <span class="member">记住用户名</span>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <button class="layui-btn ajax-submit color-w">登录</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="@public('/vendors/layui/layui.all.js')"></script>
<script type="text/javascript" src="@public('/vendors/jquery/jquery-3.2.1.min.js')"></script>
<script type="text/javascript" src="@public('/vendors/jquery/form.min.js')"></script>
<script src="@public('/vendors/toastr/toastr.min.js')"></script>
<script type="text/javascript" src="@public('/js/ajax.js')"></script>
<script type="text/javascript" src="@public('/js/admin.js')"></script>
<script type="text/javascript" src="@public('/js/login.canvas.js')"></script>
<script type="text/javascript" src="@public('/js/login.js')"></script>
<script>
    layui.use(['form'], function () {
        var form = layui.form

        AjaxFormSubmit('#form-create', function (res) {
            redirect(res)
        })
    })
</script>
</html>